/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight.support.http;

/**
 * @author haolw
 * @time 2016/09/28
 */
public class SuccessResponse extends Response {
    private static final long serialVersionUID = 1L;
    private Object data;
    private Integer errorCode;


    public SuccessResponse(Object data) {
        this.data = data;
        this.errorCode = 0;
        this.setStatus(SUCCESS_STATUS);
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }
}
